
{extend name="common@bootstrap" /}
{block name="body_content"}
<div class="btn-group">
    <a href="{:url('read')}" class="btn btn-default">列表</a>
    <a href="{:url('create')}" class="btn btn-default">继续添加</a>
</div>
<form action="{:url('update')}" method="post" role="form" data-auto-date="2019/06/26" data-auto-time="22:34">

    <div class="form-group">
        <label for="input-id">ID</label>
        <input type="number" class="form-control" id="input-id" name="id" value="{$row['id']}" placeholder="请输入ID">
    </div>

    <div class="form-group">
        <label for="input-status">是否开启</label>
        <input type="number" class="form-control" id="input-status" name="status" value="{$row['status']}" placeholder="请输入是否开启">
    </div>

    <div class="form-group">
        <label for="input-create_ts">创建时间</label>
        <input type="number" class="form-control" id="input-create_ts" name="create_ts" value="{$row['create_ts']}" placeholder="请输入创建时间">
    </div>

    <div class="form-group">
        <label for="input-update_ts">修改时间</label>
        <input type="number" class="form-control" id="input-update_ts" name="update_ts" value="{$row['update_ts']}" placeholder="请输入修改时间">
    </div>

    <div class="form-group">
        <label for="input-platform_id">平台ID</label>
        <input type="number" class="form-control" id="input-platform_id" name="platform_id" value="{$row['platform_id']}" placeholder="请输入平台ID">
    </div>

    <div class="form-group">
        <label for="input-name">角色名</label>
        <input type="text" class="form-control" id="input-name" name="name" value="{$row['name']}" placeholder="请输入角色名">
    </div>

    <div class="form-group">
        <label for="input-remark">角色描述</label>
        <input type="text" class="form-control" id="input-remark" name="remark" value="{$row['remark']}" placeholder="请输入角色描述">
    </div>

    <div class="form-group">
        <label for="textarea-nodes">权限节点(,1,2,3,)</label>
        <textarea class="form-control" id="textarea-nodes" name="nodes" placeholder="请输入权限节点(,1,2,3,)" rows="3">{$row['nodes']}</textarea>
    </div>

    <button type="submit" class="btn btn-default">确定</button>
</form>
{/block}
